package jzbank.dao.serializabledao;

import jzbank.pojo.comfig.FTPInstancePO;

import java.util.List;

public interface FTPInstanceDao {
    /**
     * 添加FTP
     * @param ftpInstancePo
     */
    void addFTPInstancePo(FTPInstancePO ftpInstancePo);

    /**
     * 删除FTP
     * @param id
     */
    void deleteFTPInstancePo(String id);

    /**
     * 修改FTP
     * @param updatedFTPInstancePo
     */
    void updateFTPInstancePo(FTPInstancePO updatedFTPInstancePo);

    /**
     * 获取所有FTP
     * @return
     */
    List<FTPInstancePO> getAllFTPInstances();

    /**
     * 根据ftpid获取单个FTP
     * @param fid
     * @return
     */
    FTPInstancePO getFTPInstancePoByFid(String fid);
}
